//***************************************************
bool fConf_IsDir(string in_NameDir, ConfType in_ct)
{ // Is the named Directory a valid Configuration File directory
// Developer's Note: I notice that the "for file in confDirectory.." loop DOES
// work when file is a file and not a sub-directory. In fact, you get one
// result of garbage. The only way I can think of to find out if a named file is
// really a sub-directory is to loop through its files hoping to find the standard
// Windows "." and ".." files. Also, first check to see if its a file.
// I don't suppose this function works on Unix machines, however.
string NameFile, NameBase
int iDebugCount = 0
if (!fConf_Exists(in_NameDir, in_ct)) return(false) // Does not exist
NameBase = fBaseName(in_NameDir)
if (NameBase == "." or
NameBase == "..") return(true) // This is a redirected folder
for NameFile in confDirectory(in_NameDir, in_ct) do
{ //if (iDebugCount++ < 30) print "\t>>fConf_IsDir:\t{" in_NameDir "}\t{" NameFile "}\n"
if (NameFile == "." or
NameFile == "..") return(true) // This folder has redirected folders
}
return(false)
} // end fConf_IsDir()